# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=jaq
pkgver=1.3.0
pkgrel=0
pkgdesc="jq clone focused on correctness, speed and simplicity"
url="https://github.com/01mf02/jaq"
arch="all"
license="MIT"
makedepends="cargo cargo-auditable"
source="
	https://github.com/01mf02/jaq/archive/v$pkgver/jaq-$pkgver.tar.gz
	fix-drop-test.patch
	"

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 target/release/jaq -t "$pkgdir"/usr/bin/
}

sha512sums="
00e3b32dc53036d8437708f48734c136a3c2a219ac84106c65d0bbac5797bac51aa2665064402d7b0efbc8710c859286cec20c5232be3d4e26e1896b968e515b  jaq-1.3.0.tar.gz
8307cc6ba54b38ec08c4c33ece617683e326793ce70242826abe6f543cd4306c90db7acdeb2119a02910ac4856c73da42ece11b06aa00ca5a402a8b04ac629ff  fix-drop-test.patch
"
